package cn.yunbamboos.mybatis.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * mybatis foreach
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.ANNOTATION_TYPE})
public @interface ForEach {

    String column();

    String collection();

    String open() default "(";

    String separator() default ",";

    String close() default ")";

    String item() default "item";

    String index() default "index";

}
